package com.liqi.system.domain;

import com.liqi.common.annotation.Excel;
import com.liqi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 故障日志管理对象 dv_equipment_fault_log
 *
 * @author Lwy
 * @date 2022-02-16
 */
public class DvEquipmentFaultLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 日志分类（0中间件上报 1人工上报 2自检上报） */
    @Excel(name = "日志分类", readConverterExp = "0=中间件上报,1=人工上报,2=自检上报")
    private String equipmentFalutType;

    /** 上报人姓名 */
    @Excel(name = "上报人姓名",sort = 6)
    private String reportName;
    private String endTime;
    private String startTime;

    /** 手机号码 */
    @Excel(name = "手机号码",sort = 6)
    private String reportPhone;

    /** 异常信息 */
    @Excel(name = "异常信息",sort = 6)
    private String errorInfo;

    private String image;

//    /** 创建时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
//    private Date createTime;

    /** 备注信息 */
    @Excel(name = "备注",sort = 6)
    private String remark;

    /** 部门id */
//    @Excel(name = "部门id",sort = 6)
    private String deptId;

    /** 创建用户id */
//    @Excel(name = "创建用户id",sort = 6)
    private String createUserId;

    /** 状态（0正常 1失效） */
//    @Excel(name = "状态", readConverterExp = "0=正常,1=失效")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEquipmentFalutType(String equipmentFalutType)
    {
        this.equipmentFalutType = equipmentFalutType;
    }

    public String getEquipmentFalutType()
    {
        return equipmentFalutType;
    }
    public void setReportName(String reportName)
    {
        this.reportName = reportName;
    }

    public String getReportName()
    {
        return reportName;
    }
    public void setReportPhone(String reportPhone)
    {
        this.reportPhone = reportPhone;
    }

    public String getReportPhone()
    {
        return reportPhone;
    }
    public void setErrorInfo(String errorInfo)
    {
        this.errorInfo = errorInfo;
    }

    public String getErrorInfo()
    {
        return errorInfo;
    }
//    public void setCreateTime(Date createTime)
//    {
//        this.createTime = createTime;
//    }
//
//    public Date getCreateTime()
//    {
//        return createTime;
//    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public String getEndTime() {
        return endTime;
    }

    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentFalutType", getEquipmentFalutType())
            .append("reportName", getReportName())
            .append("reportPhone", getReportPhone())
            .append("errorInfo", getErrorInfo())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
